package cn.fzm.demo03;

/**
 * @author Dremeue
 * @create 2019-09-25 0:42
 **/
public class BookService {
    private BookDao bookDao;

    public BookService() {
    }

    public BookService(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    public BookDao getBookDao() {
        return bookDao;
    }

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    public void add() {
        System.out.println("book service add...");
        bookDao.add();
    }
}
